package com.jgp.timing.controller;

import com.jgp.sys.controller.JGPBackController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019/3/28
 */
@Controller
@RequestMapping("timing/job-ctl")
public class JobController extends JGPBackController {
    
    @GetMapping("list-job")
    public String listTask(){
        return page("listJob");
    }
    
    @GetMapping("add-job")
    public String addJob(){
        return page("editJob");
    }
    
    @GetMapping("edit-job/{jobId}")
    public String editJob(@PathVariable Long jobId, Model model){
        re(model,"jobId",jobId);
        return page("editJob");
    }
    
}
